/*
 *  standardTemplate.cpp
 *  allInOne
 *
 *  Created by James Johns on 01/11/2009.
 *  Copyright 2009 xD-Ducnesoft. All rights reserved.
 *
 */

#include "standardTemplate.h"

standardTemplate::standardTemplate() {
	std::cout << "lols";
	
}
standardTemplate::~standardTemplate() {
	
}

void standardTemplate::run(int functionNumber, char *parameters) {
	&commandList[functionNumber](parameters);
}

int standardTemplate::registerFunction(command_t function, const char *command) {
	
	commandReference *newPlugin;
	newPlugin->pluginClass = this;
	newPlugin->functionNumber = lastFunctionNumber;
	
	coreContent->registerCommand(command, newPlugin);
	return 0x000000FF;
}
